import request from '@/utils/request'

// 查询外包合同管理列表
export function listCONTRACTINFO(query) {
  return request({
    url: '/hr/CONTRACTINFO/list',
    method: 'get',
    params: query
  })
}

// 查询外包合同管理详细
export function getCONTRACTINFO(operModeName) {
  return request({
    url: '/hr/CONTRACTINFO/' + operModeName,
    method: 'get'
  })
}

// 新增外包合同管理
export function addCONTRACTINFO(data) {
  return request({
    url: '/hr/CONTRACTINFO',
    method: 'post',
    data: data
  })
}

// 修改外包合同管理
export function updateCONTRACTINFO(data) {
  return request({
    url: '/hr/CONTRACTINFO',
    method: 'put',
    data: data
  })
}

// 删除外包合同管理
export function delCONTRACTINFO(operModeName) {
  return request({
    url: '/hr/CONTRACTINFO/' + operModeName,
    method: 'delete'
  })
}

// 导出外包合同管理
export function exportCONTRACTINFO(query) {
  return request({
    url: '/hr/CONTRACTINFO/export',
    method: 'get',
    params: query
  })
}